package com.lrz.service;

import com.lrz.pojo.Article;
import com.lrz.pojo.dto.ArticleDTO;

import java.util.List;

public interface ArticleService {

    List<ArticleDTO> findAll();

    ArticleDTO findById(Long userId, Long id);

    List<Article> findByUserId(Long userId);

    List<Article> findByState();

    void add(Article article);

    void update(Article article);

    void delete(Long id);

    void addThumbup(Long id);

    void decThumbup(Long id);

}
